package com.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.order.domain.pojo.OrderDetail;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 订单明细表 Mapper 接口
 * </p>
 *
 * @author 小杰大人
 * @since 2025-09-29
 */
public interface OrderDetailMapper extends BaseMapper<OrderDetail> {

    @Select("select id, order_id, order_no, course_id, course_name, course_cover, user_id, user_name, ori_price, cur_price, quantity, total_amount, create_time, update_time from order_detail where order_id = #{id}")
    OrderDetail querySelectByOrderId(Long id);
}
